package com.gxa.saas.core.entity.vo.luoj;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gxa.saas.core.entity.User;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_seckill_order")
public class SecKillVO {

    /*
     * 主键id
     * */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /*
    * 用户Id
    * */
    private Integer userId;
    /*
    * 商品id
    * */
    private Integer goodsId;

    /*
    * 订单id
    * */
    private Long orderId;

    public SecKillVO(Integer id, Integer pid) {
        this.userId = id;
        this.goodsId = pid;
    }
}
